//检查是否登录
export function checkLogin(){
    var token = getToken()

    return token!=null && token.length>0
}

//存储token
export function setToken(token: string){
    window.localStorage.setItem("token",token)
}

//获得token
export function getToken(){
    return window.localStorage.getItem("token")
}

//删除token
export function removeToken(){
    window.localStorage.removeItem("token")
}